<div class="categories">
    <ul>
        <?php foreach ($aryCategory as $key => $category) { ?>
            <li>
                <a class="<?php if (isset($category_id)) echo ($category_id == $category['category_id']) ? 'active' : ''; ?>" href="<?php echo $this->url('product/product-by-category', array('cat_id' => $category['category_id'], 'cat_name' => $category['category_name_filter'])); ?>">
                    <?php echo $category['category_name']; ?>
                </a>
            </li>
        <?php } ?>
    </ul>
</div>